View Javadoc
1 package junit.quilt.runner; 2 3 import junit.runner.*; 4 import junit.quilt.framework.*; 5 6 public class QuiltSuiteLoader 7 implements TestSuiteLoader 8 { 9 private ClassLoader loader = null; 10 11 public QuiltSuiteLoader( ClassLoader loader ) { 12 this.loader = loader; 13 } 14 15 public Class load( String suiteClassName ) 16 throws ClassNotFoundException 17 { 18 try { 19 Class RC = loader.loadClass( suiteClassName ); 20 return RC; 21 } catch (RuntimeException ex) { 22 throw new ClassNotFoundException( "ClassNotFound because: " + ex.toString()); 23 } 24 } 25 26 public Class reload( Class aClass ) throws ClassNotFoundException { 27 return loader.loadClass( aClass.getName()); 28 } 29 }

This page was automatically generated by Maven